package com.config.entity;

import java.util.Date;
import java.util.List;


import com.base.annotation.DisplayField;

/**
 * 名称：产线配置表 作用：确定生产线及所属车间
 * */
public class LineConfig {
	private Integer id;// id
	private Integer fatherId;// 车间id(生产线父节点)
	private String name;// 车间(生产线)名称
	private String leader;// 车间(生产线)负责人
	private String isLine;// 是否为生产线
	private String isCollect;// 是否采集数据
	private Date createTime;// 创建时间
	private String remark;// 备注
	//添加生产线编号字段，生产线采集数据
	private String linesNo;//生产线编号(不可重复)

	@DisplayField
	private List<LineConfig> children;

	public LineConfig() {
	}

	public LineConfig(Integer id, Integer fatherId, String name, String leader,
			String isLine, String isCollect, Date createTime, String remark,String linesNo) {
		this.id = id;
		this.fatherId = fatherId;
		this.name = name;
		this.leader = leader;
		this.isLine = isLine;
		this.isCollect = isCollect;
		this.createTime = createTime;
		this.remark = remark;
		this.linesNo = linesNo;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getFatherId() {
		return fatherId;
	}

	public void setFatherId(Integer fatherId) {
		this.fatherId = fatherId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLeader() {
		return leader;
	}

	public void setLeader(String leader) {
		this.leader = leader;
	}

	public String getIsLine() {
		return isLine;
	}

	public void setIsLine(String isLine) {
		this.isLine = isLine;
	}

	public String getIsCollect() {
		return isCollect;
	}

	public void setIsCollect(String isCollect) {
		this.isCollect = isCollect;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public List<LineConfig> getChildren() {
		return children;
	}

	public void setChildren(List<LineConfig> children) {
		this.children = children;
	}

	public String getLinesNo() {
		return linesNo;
	}

	public void setLinesNo(String linesNo) {
		this.linesNo = linesNo;
	}
	@Override
	public String toString() {
		return "LineConfig [id=" + id + ", fatherId=" + fatherId + ", name="
				+ name + ", leader=" + leader + ", isLine=" + isLine
				+ ", isCollect=" + isCollect + ", createTime=" + createTime
				+ ", remark=" + remark + ", linesNo=" + linesNo + ", children="
				+ children + "]";
	}
}
